package com.yq.design.responsibility;

/**
 * @ClassName Approver
 * @Description TODO
 * @Author yaoqiang
 * @Date 2021/8/25 15:53
 * @Version 1.0
 */
public abstract class Approver {
    Approver approver;
    String name;

    public Approver(String name) {
        this.name = name;
    }

    public void setApprover(Approver approver) {
        this.approver = approver;
    }
    //子类是负责实现
    public abstract  void processRequest(PurchaseRequest purchaseRequest);
}
